<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    template="layout/template.xhtml">

    <ui:define name="l_content">
		<ui:include src="/l_content/lc.xhtml" />
    </ui:define>
    
    <ui:define name="body">
    	<h:graphicImage style="left: 979px; top: 618px; width: 144px; height: 141px;" title="" alt="" value="/images/bike_man.png" styleClass="xr_ap" />
 		<h:graphicImage style="left: 1099px; top: 618px; width: 123px; height: 69px;" title="" alt="" value="/images/im_wear_k_model.png" styleClass="xr_ap"/>
    	<table width="100%">
    		<tr>
    			<td>
    				<s:fragment rendered="#{kHome.newsList.size gt 0}">
	    				<h:form>
				  			<div class="lstn" >
								<table width="240px" cellpadding="0" cellspacing="0">
						  			<tr>
						  				<td valign="top">
						  					<img src="images/news.png" style="padding-right: 20px;"/>
						  				</td>
						  				<td valign="top">
											<h:graphicImage style="width: 351px; height: 5px;" title="" alt="" value="/index_htm_files/15.png" />
									    	<rich:dataList id="news_id" style="width: 351px;"
									    		value="#{kHome.newsList}" var="e" 
									    		rows="3" >
									    		<table cellpadding="0" cellspacing="0" width="100%" class="hnt" >
									    			<s:fragment rendered="#{s eq 1}">
											  			<tr>
											  				<td>
											  					<h:graphicImage style="width: 351px; height: 5px;" title="" alt="" 
											  						value="/index_htm_files/15.png" styleClass="xr_ap" />
											  				</td>
											  			</tr>
									    			</s:fragment>
									    			<tr>
									    				<td class="b">
									    					<h:outputText value="#{e.start}" >
									    						<s:convertDateTime pattern="dd.MM.yyyy."/>
									    					</h:outputText>&#160;
									    					<h:outputText value="#{e.getName(klang)}" styleClass="red" />
									    				</td>
									    			</tr>
									    			<tr>
									    				<td width="200">
									    					<h:outputText value="#{e.getShort(klang)}..." escape="false"/>
									    					<h:commandLink action="#{kHome.viewNews(e.id)}" value=" #{messages.more_msg} >" immediate="true" styleClass="b"/>
									    				</td>
									    			</tr>
									    			<tr>
									    				<td>
									    					<h:graphicImage style="width: 351px; height: 5px;" title="" alt="" value="/index_htm_files/15.png" styleClass="xr_ap" />
									    				</td>
									    			</tr>
									    		</table>
									    	</rich:dataList>
								    		<s:fragment rendered="#{kHome.newsList.size gt 3}">
								    			<table align="left" >
								    				<tr>
								    					<td align="left">
													  		<rich:datascroller for="news_id" renderIfSinglePage="false" fastControls="hide"/>
								    					</td>
								    				</tr>
								    			</table>
								    		</s:fragment>
						  				</td>
						  			</tr>
								</table>
				  			</div>
				  		</h:form>
    				</s:fragment>
    			</td>
    			<td align="right" valign="top" rowspan="2" >
    				<!-- 
					<s:fragment rendered="#{not empty kHome.am and not empty kHome.am.img.thumb}">
	    				<table align="left">
		    				<tr>
				    			<td align="center">
				    				<div style="clear: both;"></div>
				    				<div class="kb" title="#{kHome.am.application.getName(klang)}">
			                			<img src="/#{kInitParam.imgPath}/app_#{kHome.am.img.applicationId}/#{kHome.am.img.thumb}" width="280px" height="280px"/>
						    			<div class="fs28 bg-red kbtw">
						                	<h:outputText value="#{messages.new_k_shirt_msg}" styleClass="white b"/>
						    			</div>
				                	</div>
				    			</td>
				    		</tr>
	    				</table>
					</s:fragment>
    				 -->
    				<h:form>
    					<a href="#{facesContext.externalContext.requestContextPath}/k_shirt_library.k" >
							<h:graphicImage value="/images/new_model.png" />
    					</a>
    				</h:form>
    			</td>
    		</tr>
    		<tr>
    			<td height="40px">
    			</td>
    		</tr>
    		<tr>
    			<td valign="top" align="center">
					<div id="home_video" style="position: absolute;">
						<div title="#{kHome.embed.getName(klang)}" class="kh-video" >
							<object>
								<param name="movie" value="#{kHome.embed.url}"/>
								<param name="allowFullScreen" value="true" />
								<param name="allowScriptAccess" value="always" />
								<param name="Menu" value="-1" />
								<param name="autohide" value="1" />
								<param name="controls" value="0" />
								<iframe height="175" frameborder="0" width="308" src="#{kHome.embed.url}"></iframe>
							</object>
				       	</div>
				    </div>
    			</td>
    		</tr>
    	</table>
    </ui:define>
</ui:composition>
